<#include "base.ftl">
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="${base}css/bootstrap.min.css">
    <link rel="stylesheet" href="${base}css/bootstrap-datetimepicker.min.css">
    rel="stylesheet" />
    <link rel="stylesheet" href="${base}css/mainPc.css">


    <style type="text/css">
        .current {
            color: #E71F00;
        }
    </style>
    <title>广州久龙精品酒店</title>
</head>
<body>
<header>
    <nav class="navlist">
        <div class="nav_left">
            <ul>
                <li><a class="logo" href="${base}javascript:;"><img src="${base}img/logo_orange.png" height="40" alt=""></a>
                </li>

            </ul>
        </div>

    </nav>
    <div class="shadow"></div>
</header>

<div class="container">
    <div class="row">
        <div class="col-md-2">


            <nav class="navbar navbar-default">
                <ul class="nav navbar-nav">
                    <li><a href="#">${username}铺净盈利</a></li>
                    <li><a href="#">
                        <td><span class="price">&yen;${total}</span></td>
                    </a></li>
                </ul>
            </nav>
        </div>
        <form action="waitCheckd" method="post">
            <div>


            </div>


        </form>

        <form action="orderCheckCommit" method="post" name="form1">

            <a href="${base}shenHeTongGuo?trade=${picture}" class="btn btn-lg btn-primar" style="float: right;">审核通过</a>
            <div class="col-md-10 wzf">

                <table class="table table-hover">

                <thead>
                <#if (detailList?size>0) >
                    <#list detailList as order>

                    <tr>
                        <th>#</th>
                        <th>未审核订单${order.id}</th>
                        <th>商品</th>

                    </tr>
                    </thead>
                    <ul>

                        <tr>
                            <td><input class="tablecheck" type="checkbox" checked name="${order_index}" id=""
                                       value="${order.id}" hidden></td>
                            <td><img src="${order.expressno}" width="180" height="130" alt=""></td>
                            <td>
                                <h4>久龙精品${order.expresscode}房(${order.expressname})</h4>
                                <p>订单完成日期：${order.createdate}</p>
                                <p>支付费率：${payLi1}</p>
                                <p>优惠金额：${order.amount-order.fee*payLi1}</p>
                                <p>单笔净盈利：${order.fee*payLi1}</p>
                                <p>订单金额：${order.amount}</p>
                            </td>

                        </tr>

                    </#list>
                </#if>
                </ul>
                </table>


            </div>

            <a href="${base}shenHeBoHui?trade=${picture}" class="btn btn-lg btn-primar" style="float: right;">驳回</a>
            <a href="${base}doingPc" class="btn btn-warning" tyle="float: left;">返回</a>
        </form>


        <script type="text/javascript">

            function modify() {
                document.form1.action = "orderExcelExport";

                document.form1.submit();


            }


            function gotoIndexLogin1() {
                var account = document.getElementById("account").value;
                var hash = document.getElementById("password").value;
                var password = hex_md5(hash);
                $.ajax({
                    type: 'post',
                    url: 'indexPc1',
                    data: {account: account, password: password},
                    dataType: 'json',
                    success: function (data) {
                        try {
                            //document.getElementById("exampleInputEmail12").value=data.validateCode;
                            //document.getElementById("myModal").style.display="none";

                            var test = data.validateCode;

                            if (test == "") {
                                //alert('账号或者密码不正确，请重新输入！');
                                return false;
                            }
                            document.getElementById("login").style.display = "none";

                            document.getElementById("cart1").innerHTML = test;
                            document.getElementById("cart").style = "visible";
                            document.getElementById("person").style = "visible";

                            //alert('success');
                            $("#myModal").modal("hide");
                        } catch (e) {
                            console.log(e);
                        }
                    },
                    error: function (data) {
                        alert("账号或者密码不正确，请重新输入！");
                        console.log(1234);
                        // callpay('indexPc');
                    }
                });
                //setInterval('test()',1000);
            }


            //检查缓存中是否存在用户信息
            function checkAccount() {
                //var session=document.getElementById("cart1").innerHTML;
                $.ajax({
                    type: 'get',
                    url: 'checkAccount',
                    data: {},
                    dataType: 'json',
                    success: function (data) {
                        try {
                            var isFlag = data.isFlag;
                            var accountIsFlag = data.accountIsFlag;


                            if (isFlag == 0) {
                                return false;
                            }
                            document.getElementById("login").style.display = "none";
                            //讲后台的用户传值到目标框里
                            document.getElementById("cart1").innerHTML = accountIsFlag;
                            document.getElementById("cart").style = "visible";
                            //展示修改个人信息按钮
                            document.getElementById("person").style = "visible";

                            //alert('success');
                            $("#myModal").modal("hide");
                        } catch (e) {
                            console.log(e);
                        }
                    },
                    error: function (data) {
                        alert("账号或者密码不正确，请重新输入！");
                        console.log(1234);
                        // callpay('indexPc');
                    }
                });
            }

            tijiao()
            {
                window.location.href = "${base}shenHeTongGuo?trade=${order.otherRequirement}";
            }


        </script>

        <script src="${base}js/md5.js"></script>
        <script src="${base}js/jquery.min.js"></script>
        <script src="${base}js/bootstrap.min.js"></script>
        <script src="${base}js/bootstrap-datetimepicker.min.js"></script>
        <script src="${base}js/bootstrap-datetimepicker.fr.js"></script>

        <script src="${base}js/mainPc.js"></script>
        <script src="${base}js/moment.min.js" type="text/javascript"></script>
        <script src="${base}js/My97DatePicker/config.js"></script>

        <script src="${base}js/My97DatePicker/WdatePicker.js"></script>
</body>
</html>